import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { RecommendationService } from './recommendation.service';
import { RecommendationController } from './recommendation.controller';
import { Video } from 'src/entities/video.entity';
import { VideoHistory } from 'src/entities/video-history.entity';
import { User } from 'src/entities/user.entity';
import { FavoriteVideo } from 'src/entities/favorite-videos.entity';
import { Comment } from 'src/entities/comment.entity';
import { FollowModule } from '../follow/follow.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      Video,
      VideoHistory,
      User,
      FavoriteVideo,
      Comment,
    ]),
    FollowModule,
  ],
  controllers: [RecommendationController],
  providers: [RecommendationService],
  exports: [RecommendationService],
})
export class RecommendationModule {}
